﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Atendex.Dominio.Interfaces;
using Castle.ActiveRecord;

namespace Atendex.Dominio.ActiveRecord
{
    
    [ActiveRecord("usuario", DiscriminatorColumn="type", DiscriminatorType="String", DiscriminatorValue="usuario")]
    [Serializable]
    public abstract class UsuarioAR : ActiveRecordBase<UsuarioAR>, IUsuario
    {
        

        [PrimaryKey]
        public int Id { get; private set; }

        [Property(Unique = true)]
        public string Login { get; set; }

        [Property]
        public string Email { get; set; }

        [Property]
        public string Nome { get; set; }

        [Property]
        public string Senha { get; set; }

        [Property]
        public bool Ativo { get; set; }

       
    }
}
